package org.easyelf.pitaya.admin.sys.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.easyelf.pitaya.admin.sys.entity.SysUser;
import org.easyelf.pitaya.admin.sys.mapper.SysUserMapper;
import org.easyelf.pitaya.admin.sys.service.ISysUserService;
import org.springframework.stereotype.Service;

/**
 * @Title: 用户服务实现类
 * @Description:
 * @Package: org.easyelf.pitaya.admin.sys.entity with IntelliJ IDEA
 * @User: Rehn.gaO
 * @Date: 2017-03-03
 * @Time: ${time}
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

//    @Log("登录")
    public SysUser selectByLoginName(String loginName) {
        SysUser sysUser = new SysUser();
        sysUser.setUsername(loginName);
        return super.selectOne(new EntityWrapper<SysUser>(sysUser));
    }
}
